#include <stdio.h>
#include <stdlib.h>
#include<math.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

	int main(void)
	
{
    	int i,j,k,n;
    	scanf("%d",&n);
    	
    	for(i=1;i<=(n+1)/2;i++){
    		for(k=1;k<=(n-1)-(i-1)*2;k++){
    			printf(" ");
			}
			for(j=1;j<=2*i-1;j++){
				printf("* ");
			}
			printf("\n");
    		
		}
		for(i=1;i<=(n-1)/2;i++){
			for(k=1;k<=2*i;k++){
				printf(" ");
			}
			for(j=1;j<=-2*i+n;j++){
				printf("* ");
			}
			printf("\n");
		}
    	
    	
    	
    	
		return 0;




}